Set the label actor properly so the buttons have a label.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3893>
(cherry picked from commit
53dade4c0ab4f1dd4f1ba286d8e867360e32e54c)
this.set_child(this._container);
this._container.add_child(new St.Icon({icon_name: iconName}));
- this._container.add_child(new St.Label({
+ const labelActor = new St.Label({
text: label,
x_align: Clutter.ActorAlign.CENTER,
- }));
+ });
+ this.set({labelActor});
+ this._container.add_child(labelActor);
}
});